package com.sqx.modules.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sqx.common.utils.Result;
import com.sqx.modules.course.entity.CourseDetails;
import com.sqx.modules.course.entity.dto.BatchAddCourseDetailDto;
import com.sqx.modules.course.entity.dto.BatchAddCourseDetailsDto;
import com.sqx.modules.course.entity.dto.UpdateUrlDto;
import org.springframework.web.multipart.MultipartFile;

public interface CourseDetailsService extends IService<CourseDetails> {
    Result insert(CourseDetails courseDetails);

    Result updateCourseDetails(CourseDetails courseDetails);

    Result deleteCourseDetails(String ids);

    Result selectCourseDetailsById(Long id,String token);

    Result selectCourseDetailsList(Integer page,Integer limit,String token);

    void deleteCourseDetailsById(Long[] ids, Long userId);

    void aa();

    void batchAddCourseDetail(BatchAddCourseDetailDto batchAddCourseDetailDto)throws Exception;

    Result uploadExcel(MultipartFile file);

    Result batchAddCourseDetails(BatchAddCourseDetailsDto batchAddCourseDetailsDto);

    Result getFileResourceName(String fileName);


    Result updateUrl(UpdateUrlDto updateUrlDto);

    Result updateTitleImg();

    Result updateDetailImg();

    Result getFileImgName(String fileName);

    Result detailsSort();
}
